package com.services.forms;

/**
 * Created by Administrator on 2017/5/10.
 */
public class UploadFileResult {
    public String url;
    public String errorMsg;
    private Boolean success;

    public static UploadFileResult success(String url) {
        UploadFileResult uploadFileResult = new UploadFileResult();
        uploadFileResult.success = true;
        uploadFileResult.url = url;
        return uploadFileResult;
    }

    public static UploadFileResult fail(String errorMsg) {
        UploadFileResult uploadFileResult = new UploadFileResult();
        uploadFileResult.success = false;
        uploadFileResult.errorMsg = errorMsg;
        return uploadFileResult;
    }


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Boolean getSuccess() {
        return success;
    }

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }
}
